package com.cino.users.mapper;

import com.cino.system.domain.Menu;
import com.cino.users.domain.Logininfo;
import com.cino.basic.base.mapper.BaseMapper;
import com.cino.users.dto.AccountDto;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Cino
 * @since 2023-02-07
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo loadByAccount(AccountDto accountDto);

    List<String> findPermissionsByLogininfoId(Long id);

    List<Menu> findMenusByLogininfoId(Long id);
}
